#include <QCoreApplication>
#include <iostream>
using namespace std;

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    int day=365;
    int dayv=366;
    int year=0;
    cout<<"Vvedite god: ";
    cin>>year;
    if(year%4==0)
    {
    if((year%100==0)&&(year%400!=0))
    cout<<day<<" dney";
    else
    cout<<dayv<<" dney";
    }
    else
    cout<<day<<" dney";
    return a.exec();
}
